package com.amoyt.project.domain.dto.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Date: 2025/8/19
 * @Time: 16:40
 * @Author: TQ_QT
 * @Description: 分页查询基础类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "分页查询基础类")
public class BasePageQuery {
    /**
     * 当前页码
     */
    @Schema(description = "当前页码",required = true,defaultValue = "1")
    private Integer page;
    /**
     * 每页条数
     */
    @Schema(description = "每页条数",required = true,defaultValue = "2")
    private Integer pageSize;
    /**
     * 开始时间
     */
    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;
    /**
     * 结束时间
     */
    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;
}
